package com.ruoyi.web.controller.homestay;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.IFileUploadService;
import com.ruoyi.system.service.IMerchantService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;


@Api(tags = "商家注册审批管理")
@RestController
@RequestMapping("/homestay/merchantRegister")
public class MerchantRegister extends BaseController {

    @Resource
    private IFileUploadService fileUploadService;


    @PostMapping("/fileUpload")
    public AjaxResult fileUpload (MultipartFile file){

        String url = fileUploadService.upload(file);

        return AjaxResult.success();
    }



}
